import type { UploadRawFile } from 'element-plus'

export type UploadFile = {
  file?: UploadRawFile | undefined
}

export interface UserInfo extends UploadFile {
  _id: string
  username: string
  password?: string
  gender?: number //性别 0 未知 1 男 2女
  introduction?: string //简介
  avatar?: string
  role?: number //角色 1为管理员 2为普通用户
  deleted?: boolean
}

export interface UserInfoShow extends UserInfo {
  genderName?: string
  roleName?: string
}
export type AddUserInfo = Omit<UserInfo, '_id'>
